<template>
  <div class="nav-container animate__animated animate__backInDown">
    <div class="navBox">
      <div class="left">FGAME</div>
      <div class="right">
        <ul>
          <li @click="router.push('/')">主页</li>
          <li @click="router.push('/game')">所有游戏</li>
          <li @click="router.push('/my')">个人信息</li>
          <li>
            <a
              href="https://gitee.com/drssx1827951482/game-project"
              target="_blank"
              style="color: #fff"
              >关于</a
            >
          </li>
        </ul>
      </div>
    </div>
  </div>
</template>

<script setup>
import { useRouter } from "vue-router";
const router = useRouter();
</script>

<style scoped lang="less">
.nav-container {
  position: absolute;
  z-index: 999;
  top: 0;
  width: 100vw;
  height: 100px;
  display: flex;
  justify-content: center;
  .navBox {
    padding: 0 40px;
    width: 70%;
    height: 100%;
    border-bottom: 1px solid rgb(206, 205, 205);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    .left {
      font-size: 40px;
      font-weight: 300;
    }
    .right {
      ul {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        font-size: 20px;
        li {
          margin-right: 20px;
          cursor: pointer;
          transition: 0.3s;
          &:hover {
            transform: translateY(-5px) scale(1.05);
          }
        }
      }
    }
  }
}
</style>
